<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/finance/rcOperatorAccountRecordList.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css?v=20200825">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css?v=20200825">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>

    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>

    <style>
        .fixed-table-toolbar {
            top: -2px;
            right: 160px;
        }
        .bootstrap-table .fixed-table-container .table thead th .th-inner{
            text-align: center !important;
        }

        .ibox-body #exampleModal input, .ibox-body #exampleModal select {
            width: 100% !important;
            height: 38px !important;
        }

        #exampleModal .btn, .btn-sm {
            margin-bottom: 0;
        }

        #exampleModal .form-group {
            padding-top: 0;
            margin-bottom: 5px;
        }

    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return'<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>财务管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>资金交易流水明细</strong>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                        <input id="orderNum" name="orderNum" type="text" class="form-control longInput input-distance" placeholder="交易流水号">
                        <%--<select id="explain" name="explain" class="form-control input-distance">
                            <option value="">摘要</option>
                            <option value="0">充值</option>
                            <option value="1">加盟商结算</option>
                            <option value="U">提成收益提现</option>
                            <option value="C">支付成本手续费</option>
                            <option value="ZX">手续费</option>
                            <option value="ZX">退款</option>
                        </select>--%>
                        <select id="recordType" name="recordType" class="form-control chosen-select">
                            <option value="" selected="selected">流水类型</option>
                            <option value="0">充值</option>
                            <option value="1">支出</option>
                        </select>
                        <button class="btn btn-success input-distance" onclick="operationType.reLoad()">查询</button>
                        <button class="btn btn-default input-distance" style="height: 31px;" onclick="operationType.reset()">重置</button>
<%--                        <button class="btn btn-success input-distance" onclick="rechargeOrder.detailRechargeOrder()">农行交易详情</button>--%>
                    <div class="pull-left search fr exportNumInput">
                        <input id="count" name="count" hidden type="text" class="form-control" autocomplete="off"
                               placeholder="导出条数">
                    </div>
                    <div class="pull-left search fr">
                        <button class="btn btn-success exportBtn" onclick="operationType.exportRcOperatorAccountRecord()">导出</button>
                    </div>

                </div>
                <div class="row">
                    <input id="startTime" name="startTime" type="text"
                           class="form-control layer-date shortInput "
                           placeholder="开始时间">
                    <input id="endTime" name="endTime" type="text"
                           class="form-control layer-date input-distance shortInput "
                           placeholder="结束时间">
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>

                <%--  模态框  --%>
                <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                        aria-hidden="true"></span></button>
                                <h4 class="modal-title" id="exampleModalLabel" data-dismiss="modal" aria-label="Close">关闭</h4>
                            </div>
                            <div class="modal-body">
                                <form id="contentForm" class="layui-form">
                                    <div class="form-group row">
                                        <label class="col-sm-4 col-form-label text-right">入账时间:</label>
                                        <div class="col-sm-8">
                                            <input id="recordTime" name="recordTime" type="text"
                                                   class="form-control layer-date input-distance shortInput "
                                                   placeholder="入账时间">
                                        </div>
                                    </div>

                                </form>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                <button type="button" class="btn btn-success" id="submitButton">确定</button>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>

<script type="text/javascript">

    // //日期范围限制
    var start = {
        elem: '#startTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        istoday: false,
        choose: function (datas) {
            $("#endTime").val("")
            end.min = datas
        }
    };
    var end = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    var recordTimeS = {
        elem: '#recordTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        istoday: false,
        choose: function (datas) {
            $("#recordTime").val(datas);
        }
    };
    laydate(start);
    laydate(end);
    laydate(recordTimeS);
    laydate.skin('molv');//皮肤

    operationType.init();
</script>
</body>
</html>
<%--
<script type="text/javascript">
    $(function () {
        $('#recordType').searchableSelect();
    })
</script>--%>
